package com.heima.utils.common;

import com.heima.model.wemedia.pojos.WmUser;

public class WmThreadLocalUtil {
    public static ThreadLocal<WmUser> WM_USER_THREAD_LOCAL=new ThreadLocal<>();

    public static WmUser getThreadLocal() {
        return WM_USER_THREAD_LOCAL.get();
    }

    public static void setThreadLocal(WmUser user) {
        WM_USER_THREAD_LOCAL.set(user);
    }

    public static void remove(){
        WM_USER_THREAD_LOCAL.remove();
    }
}
